﻿@if(Request.IsAuthenticated) {
    PYS.PYSEntities entities = new PYS.PYSEntities();
    decimal userCNP = Decimal.Parse(User.Identity.Name);
    PYS.user user = entities.users.FirstOrDefault(x => x.CNP == userCNP);
    <div>
        <span style="float:left">@Html.ActionLink("Home", "Index", "Home") | </span>
        <span style="float:left">&nbsp @Html.ActionLink("About", "About", "Account")</span>
        <span style="float:right"> | @Html.ActionLink("Log Out", "LogOff", "Account")</span>
        <span style="float:right; color:#168EF7"><strong>@user.firstName &nbsp</strong></span>
    </div>

}
else
{
    @:[ @Html.ActionLink("Log On", "LogOn", "Account") ]
}
